package org.bonorsoft.modules.hospital.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.bonorsoft.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 普通转诊
 * @Author: WilliamYe
 * @Date:   2020-10-14
 * @Version: V1.0
 */
@Data
@TableName("sys_common_referral")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CommonReferral {
    
	/**主键id*/
	@TableId(type = IdType.ID_WORKER_STR)
	private java.lang.String id;
	/**转诊id（uuid）*/
	private java.lang.String referralId;
	/**患者姓名*/
	@Excel(name = "姓名", width = 15)
	private java.lang.String patientName;
	/**患者性别（字典数据，1：男；2：女）*/
	@Excel(name = "性别", width = 15, replace={"男_1","女_2"})
	@Dict(dicCode = "sex")
	private java.lang.Integer patientSex;
	/**患者年龄*/
	@Excel(name = "年龄", width = 15)
	private java.lang.String patientAge;
	/**患者联系方式*/
	@Excel(name = "联系方式", width = 15)
	private java.lang.String patientPhone;
	/**患者身份证号*/
	@Excel(name = "身份证号", width = 15)
	private java.lang.String patientSfzh;
	/**转出方式*/
	@Excel(name = "转出方式", width = 15, replace={"120送_1","120接_2","自行转院_3"})
	@Dict(dicCode = "roll_out_type")
	private java.lang.Integer rollOutType;
	/**拟就诊医院（转入医院）*/
	@Excel(name = "转入医院", width = 15)
	private java.lang.String rollOutHosp;
	/**转出科室*/
	@Excel(name = "转出科室", width = 15)
	private java.lang.String rollOutDep;
	/**转诊医师*/
	@Excel(name = "转诊医师", width = 15)
	private java.lang.String rollOutDoctor;
	/**转诊时间*/
	@Excel(name = "转诊时间", width = 15)
	private java.lang.String rollOutTime;
	/**会诊医师*/
	@Excel(name = "会诊医师", width = 15)
	private java.lang.String consultationDoctors;
	/**诊断*/
	@Excel(name = "诊断", width = 15)
	private java.lang.String diagnosis;
	/**备注*/
	@Excel(name = "备注", width = 15)
	private java.lang.String remarks;
	/**创建人*/
	private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
}
